vtd: Fix some dmar bugs
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 29 Jul 2008 09:41:41 +0000 (10:41 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 29 Jul 2008 09:41:41 +0000 (10:41 +0100)
commitef5cb4e6a0c2d204ae7ff3919d6515aa7889fb2a
tree3ebd7dbc7ffea260a946145f84d85bd58f7abca7
parent06efa7c66478852d5b3d135a2b2cbf1e2c4020c9
vtd: Fix some dmar bugs

In acpi_parse_one_drhd(), remove return directly when only one
INCLUDE_ALL check fails, so that avoid memory leak. In addition,
remove "dmaru->scope.devices_cnt == 0 && !dmaru->include_all" check,
due to PCI-PCI bridges are not counted.

This patch fixes bug #1307.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/drivers/passthrough/vtd/dmar.c